<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp" %>
<%@ include file="/commons/kindeditor.jsp" %>
<script type="text/javascript">
    $(function() {
    	//初始化类目选择和图片上传器
		TAOTAO.init({fun:function(node){}});
        $('#countryDetailsAddForm').form({
            url : '${path}/admin/countryDetails/add',
            onSubmit : function() {
                progressLoad();
                var isValid = $(this).form('validate');
                if (!isValid) {
                    progressClose();
                }
                return isValid;
            },
            success : function(result) {
                progressClose();
                result = $.parseJSON(result);
                if (result.success) {
                    //之所以能在这里调用到parent.$.modalDialog.openner_dataGrid这个对象，是因为user.jsp页面预定义好了
                    parent.$.modalDialog.openner_dataGrid.datagrid('reload');
                    parent.$.modalDialog.handler.dialog('close');
                } else {
                    parent.$.messager.alert('错误', result.msg, 'error');
                }
            }
        });
    });
</script>
<div style="padding:10px 10px 10px 10px">
        <form id="countryDetailsAddForm" method="post" enctype="multipart/form-data">
            <table class="grid">
				<tr>
                    <td>首都:</td>
					<td>
						<input id="capital" name="capital" type="text" placeholder="请输入首都" class="easyui-textbox" data-options="required:true" />
					</td>
				</tr>
				<tr>
                    <td>首都英文:</td>
					<td>
						<input id="capitalEn" name="capitalEn" type="text" placeholder="请输入首都英文" class="easyui-textbox" data-options="required:true" />
					</td>
				</tr>
				<tr>
                    <td>官方语言:</td>
					<td>
						<input id="language" name="language" type="text" placeholder="请输入官方语言" class="easyui-textbox" data-options="required:true" />
					</td>
				</tr>
				<tr>
                    <td>国家面积:</td>
					<td>
						<input id="acreage" name="acreage" type="text" placeholder="请输入国家面积" class="easyui-textbox" data-options="required:true" />
					</td>
				</tr>
				<tr>
                    <td>国际人口:</td>
					<td>
						<input id="population" name="population" type="text" placeholder="请输入国际人口" class="easyui-textbox" data-options="required:true" />
					</td>
				</tr>
				<tr>
                    <td>货币:</td>
					<td>
						<input id="currency" name="currency" type="text" placeholder="请输入货币" class="easyui-textbox" data-options="required:true" />
					</td>
				</tr>
				<tr>
                    <td>时区:</td>
					<td>
						<input id="timezone" name="timezone" type="text" placeholder="请输入时区" class="easyui-textbox" data-options="required:true" />
					</td>
				</tr>
				<tr>
                    <td>宗教:</td>
					<td>
						<input id="religion" name="religion" type="text" placeholder="请输入宗教" class="easyui-textbox" data-options="required:true" />
					</td>
				</tr>
				<tr>
                    <td>安全:</td>
					<td>
						<input id="security" name="security" type="text" placeholder="请输入安全" class="easyui-textbox" data-options="required:true" />
					</td>
				</tr>
				<tr>
                    <td>环境:</td>
					<td>
						<input id="ambient" name="ambient" type="text" placeholder="请输入环境" class="easyui-textbox" data-options="required:true" />
					</td>
				</tr>
				<tr>
                    <td>战乱:</td>
					<td>
						<input id="war" name="war" type="text" placeholder="请输入战乱" class="easyui-textbox" data-options="required:true" />
					</td>
				</tr>
				<tr>
                    <td>签证:</td>
					<td>
						<input id="visa" name="visa" type="text" placeholder="请输入签证" class="easyui-textbox" data-options="required:true" />
					</td>
				</tr>
				<tr>
                    <td>扩展阅读:</td>
					<td>
						<input id="extend" name="extend" type="text" placeholder="请输入扩展阅读" class="easyui-textbox" data-options="required:true" />
					</td>
				</tr>
				<tr>
                    <td>国家外键:</td>
					<td>
						<input id="countryId" name="countryId" type="text" placeholder="请输入国家外键" class="easyui-textbox" data-options="required:true" />
					</td>
				</tr>
            </table>
        </form>
    </div>